package com.kamistoat.meimeistore.product.aliyunVideo.service;

import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.vod.model.v20170321.GetPlayInfoResponse;
import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthResponse;

/**
 * 从阿里云视频点播服务中获取视频的播放地址或者播放凭证
 */
public interface GetVideoInfoAuthService {

    /**
     * 获取视频播放地址
     *
     * @param videoId 视频在阿里云中的唯一Id
     * @return 库类 GetPlayInfoResponse
     */
    GetPlayInfoResponse getVideoInfo(String videoId) throws ClientException;

    /**
     * 获取视频播放凭证
     *
     * @param videoId 视频在阿里云中的唯一ID
     * @return 库类 GetVideoPlayAuthResponse
     */
    GetVideoPlayAuthResponse getVideoAuth(String videoId) throws ClientException;

}
